<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>上机1</title>
    <!-- 钟奕升 -->
    <style>
      .box {
        width: 300px;

        height: 300px;
        border: 3px solid red;
        padding: 10px;
        margin: 50px auto;
      }
      .box > a {
        width: 100px;
        height: 100px;
        line-height: 100px;
        display: block;
        background-color: #ff88fd;
        text-align: center;
        color: #fff;
      }
      .box > a:hover {
        background-color: blue;
      }
      .a2,
      .a4 {
        position: relative;
        left: 200px;
        top: -100px;
      }
      .a5 {
        position: relative;
        left: 100px;
        top: -300px;
      }
    </style>
  </head>
  <body>
    <div class="box">
      <a class="a1" href="#">链接1</a>
      <a class="a2" href="#">链接2</a>
      <a class="a3" href="#">链接3</a>
      <a class="a4" href="#">链接4</a>
      <a class="a5" href="#">链接5</a>
    </div>
  </body>
</html>
